package adt;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Process {
	
	public String name;
	public int arrivalTime;
	public int runTime;
	public String userName;
	public int remainingTime;
	
	public Process(String name, int arrivalTime, int runTime, String userName){
		
		this.name = name;
		this.arrivalTime = arrivalTime;
		this.runTime = runTime;
		this.userName = userName;
		this.remainingTime = runTime;
		
	}
	
	public void run(int runTimes){
		
		remainingTime -= runTimes;
		System.out.println(this.name + " from "+ userName + " is Running for " + runTimes + " time(s)");
		
	}

}
